package com.cens.mall.commodity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cens.common.utils.PageUtils;
import com.cens.mall.commodity.entity.CategoryEntity;
import com.cens.mall.commodity.vo.Catalog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author cens
 * @email wzccens@163.com
 * @date 2020-07-11 13:11:31
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeCategories(List<Long> asList);

    /**
     * 查询catelogId的完整路径
     * @param catelogId catelogId
     * @return 完整路径
     */
    Long[] findCateLogPath(Long catelogId);

    void updateDetail(CategoryEntity category);

    List<CategoryEntity> getLevelOneCategorys();

    Map<String,List<Catalog2Vo>> getCatalogJson();

}

